home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Interfaces & Libraries / interfaces / font menu library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  1.6 KB  |  49 lines  |  [TEXT/MPS ]

  1. /* graphics:    
  2.     gxFont menu library interfaces
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Mike Reed, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright ©1987 - 1991 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. #ifndef fontMenuLibraryIncludes
  8. #define fontMenuLibraryIncludes
  9.  
  10. #ifndef __Menus__
  11.     #include <Menus.h>
  12. #endif
  13.  
  14. #ifndef fontTypesIncludes
  15.     #include "font types.h"
  16. #endif
  17.  
  18. #ifndef graphicsTypesIncludes
  19.     #include "graphics types.h"
  20. #endif
  21.  
  22. #ifndef fontRoutinesIncludes
  23.     #include "font routines.h"
  24. #endif
  25.  
  26. enum {
  27.     noInstancesFontMenu = 1
  28. };
  29. typedef long fontMenuAttribute;
  30.  
  31. typedef boolean (*fontFilterProc)(gxFont fontID);
  32.  
  33. void SortMenu(MenuHandle);
  34. long FontMenu(MenuHandle);
  35. long FontPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  36. long FontFamilyMenu(MenuHandle);
  37. long FontFamilyPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  38. MenuHandle FontStyleMenu(short menuID, gxFont family);
  39. short HierFontMenu(MenuHandle theMenu, short firstHierMenuID, fontFilterProc proc, fontMenuAttribute attr);
  40. gxFont DoHierFontMenuCommand(long menuResult, short hierFontMenuID, long *instanceIndex);
  41. short DoHierFontMenuCommandStyle(long menuResult, short hierFontMenuID,gxStyle aStyle, long matchInfo);
  42. short DoHierFontMenuCommandShape(long menuResult, short hierFontMenuID,gxShape aShape);
  43. gxFont QDToFont(long fondID, long styleBits);
  44. long FontToQD(gxFont fontID, long* styleBits);
  45. void FontFeatureMenu(MenuHandle menu, gxFont fontID, short firstHierMenuID);
  46.  
  47.  
  48. #endif
  49.